<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/dao/CalendarDao.php'); 
require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/model/Kid.php'); 

header("Content-Type:text/xml");  
	
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
	

$kid = new Kid();
$kid->setId(1);

$c = new CalendarDao();
echo "<root>";
/*foreach($c->readCalendarByKidMonth($kid, 2012, 1) as $calendar){
    echo $calendar->toXml();
}*/

/*foreach($c->getNextCalendarDaysForKid($kid, 7) as $calendar){
    echo $calendar->toXml();
}*/

// echo $c->readCalendarKidsForDate("20120123")->toXml();

/*foreach($c->readCalendarKidsForMonth(2012, 1) as  $calendar){
    echo $calendar->toXml();
}*/



foreach($c->readCalendarForKid($kid, 2012, 1) as $calendar){
    echo $calendar->toXml();
}

echo "</root>";
?>
